<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Performs debugging operations</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.construct.html">mysqli::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.dump-debug-info.html">mysqli::dump_debug_info</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli.debug" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::debug</h1>
  <h1 class="refname">mysqli_debug</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli::debug</span> -- <span class="refname">mysqli_debug</span> &mdash; <span class="dc-title">Performs debugging operations</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.debug-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>mysqli::debug</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code></span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>mysqli_debug</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code></span>
   )</div>

  <p class="para rdfs-comment">
   Performs debugging operations using the Fred Fish debugging library.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.debug-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">message</code></em></dt>

     <dd>

      <p class="para">
       A string representing the debugging operation to perform
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.debug-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong>.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-mysqli.debug-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    To use the <span class="function"><strong>mysqli_debug()</strong></span> function you must compile
    the MySQL client library to support debugging.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.debug-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-1627">
    <p><strong>Example #1 Generating a Trace File</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/*&nbsp;Create&nbsp;a&nbsp;trace&nbsp;file&nbsp;in&nbsp;'/tmp/client.trace'&nbsp;on&nbsp;the&nbsp;local&nbsp;(client)&nbsp;machine:&nbsp;*/<br /></span><span style="color: #0000BB">mysqli_debug</span><span style="color: #007700">(</span><span style="color: #DD0000">"d:t:o,/tmp/client.trace"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.debug-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mysqli.dump-debug-info.html" class="function" rel="rdfs-seeAlso">mysqli_dump_debug_info()</a> - 将调试信息输出到日志</span></li>
    <li class="member"><span class="function"><a href="function.mysqli-report.html" class="function" rel="rdfs-seeAlso">mysqli_report()</a> - 开启或禁用（Mysql）内部（错误）报告函数</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.construct.html">mysqli::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.dump-debug-info.html">mysqli::dump_debug_info</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
